package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.Equipment;
import com.example.sls.dao.logistics.EquipmentDao;
import com.example.sls.service.intserfaces.logistics.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备表(Equipment)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:04
 */
@Service
public class EquipmentServiceImpl implements EquipmentService {
  @Autowired
  EquipmentDao equipmentDao;

  @Override
  public Equipment queryById(Integer id) {
    return equipmentDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return equipmentDao.deleteById(id);
  }

  @Override
  public int update(Equipment equipment) {
    return equipmentDao.update(equipment);
  }

  @Override
  public int insert(Equipment equipment) {
    return equipmentDao.insert(equipment);
  }

  @Override
  public long count() {
    return equipmentDao.count();
  }

  @Override
  public List<Equipment> queryAllByLimit(Equipment equipment, Integer pageSize, Integer offset) {
    return equipmentDao.queryAllByLimit(equipment, pageSize, offset);
  }
}
